import request from '@/utils/request'

// 查询章节选项
export function treeselectQbmsChapter(query) {
  return request({
    url: '/qbms/qbmsChapter/treeselect',
    method: 'get',
    params: query
  })
}

// 查询题库章节列表
export function listQbmsChapter(query) {
  return request({
    url: '/qbms/qbmsChapter/list',
    method: 'get',
    params: query
  })
}

// 查询题库章节详细
export function getQbmsChapter(id) {
  return request({
    url: '/qbms/qbmsChapter/' + id,
    method: 'get'
  })
}

// 新增题库章节
export function addQbmsChapter(data) {
  return request({
    url: '/qbms/qbmsChapter',
    method: 'post',
    data: data
  })
}

// 修改题库章节
export function updateQbmsChapter(data) {
  return request({
    url: '/qbms/qbmsChapter',
    method: 'put',
    data: data
  })
}

// 删除题库章节
export function delQbmsChapter(id) {
  return request({
    url: '/qbms/qbmsChapter/' + id,
    method: 'delete'
  })
}
